package ec.edu.cec.java.adv.streams;

import java.io.CharArrayReader;
import java.io.IOException;

public class ReadOnlyChar {

	public static void main(String[] args) {
		CharArrayReader caracter = null;
		try {			
			char[] character = {'m','i','6','u','e','l','o'};
			caracter = new CharArrayReader(character);
			int value = 0;
			while ((value = caracter.read())!=-1) {
				char c = (char)value;
				System.out.print(c + " : ");
				System.out.println(value);
				
			}
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}finally{
			if (caracter!=null) {
				caracter.close();
			}
		}
	}

}
